package com.niguang.work.labour.api.controller;


import com.niguang.work.labour.api.service.BanksService;
import com.niguang.work.labour.common.constant.ResultCode;
import com.niguang.work.labour.common.pojo.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 'work.v_personSite' is not BASE TABLE 前端控制器
 * </p>
 *
 * @author 83673
 * @since 2018-11-17
 */
@RestController
@RequestMapping("/userBank")
public class UserBankController {

    @Autowired
    private BanksService banksService;

    /**
     * 获取银行卡列表
     *
     * @return
     */
    @GetMapping("getBanksList")
    public Result getBanksList() {
        return Result.build(ResultCode.SUCCESS, "银行列表查询成功", banksService.getBanksList());
    }


}

